package actions;


import java.awt.event.ActionEvent;

import javax.swing.JOptionPane;

import client_gui.ClientWindow;

/**
 * Klasa reprezentuje About akciju.
 * 
 * @author UrosKrkic & Radivoje Popovic
 */
public class AboutAction extends RLMAbstractAction {

	
	public AboutAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0));
		putValue(SMALL_ICON, loadIcon("images/about.png"));
		putValue(NAME, "About");
		putValue(SHORT_DESCRIPTION, "O programu");
		
		setActionItem();
	}
	
	
	public void actionPerformed(ActionEvent e) {

		JOptionPane.showMessageDialog(super.getActionOwner(),
				"RLM - RAF Live Messenger\n" +
				"\nUroš Krkić\n" +
				"Radivoje Popović\n\n" +
				" - Računarski fakultet\n" +
				" - Beograd\n" +
				" - Copyright 2008.",
				"About RAF Live Messenger",
				JOptionPane.INFORMATION_MESSAGE);

	}
	
}
